<?php
/*
* File：后台登陆
* Author：易如意
* QQ：51154393
* Url：www.eruyi.cn
*/
$err = isset($_GET['err']) ? intval($_GET['err']) : 0;
$errmsg = array(null,'账号密码不能为空','账号密码有误','您还没有登陆，请先登录！');
$error_msg = $errmsg[$err];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="./css/css-login.css" type="text/css" media="screen" /> 
<title>管理登录</title>
</head>
<body>
<form name="f" method="post" action="./index.php?action=login">
<div class="login-main">
	<div class="login-top"></div>
	<div class="login-logo"><img src="./images/login_logo.png" alt="admin" width="294" height="68" /></div>
	<div class="login-input">
		<span>账号</span>
		<div><input type="text" name="user" id="user" /></div>
		<span>密码</span>
		<div><input type="password" name="pw" id="pw" /></div>
	</div>
	<div class="login-button">
	<div class="button"><input type="submit" value="登 录" class="submit"></div>
	</div>
	<div style="clear:both;"></div>
	<div class="login-bottom"></div>
</div>
<?php if ($error_msg): ?>
<div class="login-error"><?php echo $error_msg; ?></div>
<?php endif;?>
</form>
</body>
</html>
